package com.enjoyor.health.HGPT.core.config;

import com.alibaba.fastjson2.JSONObject;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;

import java.util.concurrent.TimeUnit;

/**
 * @author Zhu Min
 * @date 2023/10/23 13:10
 */
public class Constant {

    public final static String PACKAGE_NAME = "银江全身报告";
    public final static String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public final static String RESERVATION_LOCATION = "健康小屋";
    public final static String DIALOG_NAME = "第一次对话";

    public static final Cache<String, JSONObject> SMS_CODE_CACHE = CacheBuilder.newBuilder()
            // 写缓存后多久过期
            .expireAfterWrite(60, TimeUnit.SECONDS)
            .build();

}
